package practicaspl.siete;

import java.io.IOException;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;

import practicaspl.siete.AnalisisLexer;
import practicaspl.siete.AnalisisParser;

/**
 * Hello world!
 *
 */
public class Appsiete 
{
	public static void main( String[] args ) throws IOException, RecognitionException
    {
 
        CharStream fis = new ANTLRFileStream("Entrada2.txt");
        AnalisisLexer analex = new AnalisisLexer(fis);
        CommonTokenStream tokens = new CommonTokenStream();
        AnalisisParser sint = new AnalisisParser(tokens);
        

        tokens.setTokenSource(analex);

        //System.out.println(tokens.toString());
        //sint.entrada();
        sint.entrada();
 	}
}
